package com.tencent.albert.weixin.driver;

import com.tencent.albert.weixin.driver.bean.AccessToken;

/**
 * Created by albertzhu on 15/2/12.
 */
public class Constants {

    public final static String appId = "wx7c6a7bf8b5dcf4e4";
    public final static String appSecret = "45ab68d50c3894a584dde1e1b992e82c";

    // 与接口配置信息中的Token要一致
    public final static String token = "weixinCourse";

    public final static String user_info_url = "https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN";

    public final static String user_info_access_token_url = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=APPSECRET&code=CODE&grant_type=authorization_code";

    // 获取access_token的接口地址（GET） 限200（次/天）
    public final static String access_token_url = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET";

    // 菜单创建（POST） 限100（次/天）
    public static String menu_create_url = "https://api.weixin.qq.com/cgi-bin/menu/create?access_token=ACCESS_TOKEN";

    // 菜单删除（POST） 限100（次/天）
    public static String menu_del_url = "https://api.weixin.qq.com/cgi-bin/menu/delete?access_token=ACCESS_TOKEN";

    // 菜单删除（POST） 限100（次/天）
    public static String qrcode_create_url = "https://api.weixin.qq.com/cgi-bin/qrcode/create?access_token=ACCESS_TOKEN";

    public final static String mediaDownUrl = "http://file.api.weixin.qq.com/cgi-bin/media/get?";

    public final static String messgePostUrl = "https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=";

    public final static String mediaBaseDic = "/data/media";

    public final static String DBNAME = "weixin_development";

    public final static int MSG_STATUS_NO_HANDLER = 0 ;

    public final static int MSG_STATUS_HANDLER = 1 ;

    public final static int MSG_STATUS_HANDLER_ERROR = 2 ;

    /**
     * 返回消息类型：文本
     */
    public static final String RESP_MESSAGE_TYPE_TEXT = "text";

    /**
     * 返回消息类型：音乐
     */
    public static final String RESP_MESSAGE_TYPE_MUSIC = "music";

    /**
     * 返回消息类型：图文
     */
    public static final String RESP_MESSAGE_TYPE_NEWS = "news";

    /**
     * 请求消息类型：文本
     */
    public static final String REQ_MESSAGE_TYPE_TEXT = "text";

    /**
     * 请求消息类型：图片
     */
    public static final String REQ_MESSAGE_TYPE_IMAGE = "image";

    /**
     * 请求消息类型：链接
     */
    public static final String REQ_MESSAGE_TYPE_LINK = "link";

    /**
     * 请求消息类型：地理位置
     */
    public static final String REQ_MESSAGE_TYPE_LOCATION = "location";

    /**
     * 请求消息类型：音频
     */
    public static final String REQ_MESSAGE_TYPE_VOICE = "voice";

    /**
     * 请求消息类型：推送
     */
    public static final String REQ_MESSAGE_TYPE_EVENT = "event";

    /**
     * 事件类型：subscribe(订阅)
     */
    public static final String EVENT_TYPE_SUBSCRIBE = "subscribe";

    /**
     * 事件类型：unsubscribe(取消订阅)
     */
    public static final String EVENT_TYPE_UNSUBSCRIBE = "unsubscribe";

    /**
     * 事件类型：CLICK(自定义菜单点击事件)
     */
    public static final String EVENT_TYPE_CLICK = "CLICK";
    /**
     * 消息发送完的回调通知
     */
    public static final String EVENT_TYPE_JOBFINISH = "MASSSENDJOBFINISH";

    /**
     * 转多客服系统
     */
    public static final String RESP_MESSAGE_TYPE_TRANSFER_SERVICE = "transfer_customer_service";

    //数据上报
    public static String REPORT_URL = "http://10.10.233.93:18083/reportcenter/api/report/";
}
